export const btnText = {
  '3': '去京东首页逛一逛',
  '4': '去京东首页逛一逛',
  '5': '再次认证'
};

export const desText = {
  '3': ['您提交的视频', '预计24小时内审核'],
  '4': ['您提交的视频已审核通过', '感谢您的参与'],
  '5': ['您提交的视频经过审核,因', '原因未通过,请再次进行认证']
};

export const pageTitle = {
  '3': ['视频审核中'],
  '4': ['审核通过'],
  '5': ['审核失败']
};
//   @ts-ignore
export const goJDHome = () => {
  const JSSDK = window['JSSDK'];
  const url = `https://m.jd.com`;
  const targetVersion =
    JSSDK.Client.isJDApp() &&
    JSSDK.Client.getAppVersion() &&
    +JSSDK.Client.getAppVersion().replace(/\./g, '') > 1000;

  if (JSSDK.Client.isJDApp() && targetVersion) {
    try {
      window.location.href =
        'openApp.jdMobile://virtual?params={"category":"jump","des":"HomePage","sourceType": "m", "sourceValue": "index", "M_sourceFrom": "index", "m_param": {}}';
    } catch (err) {
      window.location.href = url;
    }
  } else {
    window.location.href = url;
  }
};
